<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    .div1{
        width:200px;
        height:50px;
        position:absolute;
        left:20px;
        top:20px;
        /* background:rgb(0, 0, 0); */
        background: orange;
        overflow:hidden;
        border-radius:3px;
        /* box-shadow:0px 0px 1px 1px gray; */
    }
    .div2{
        width:100%;
        height:100%;
        transform:rotate(70deg);
        background:rgba(255, 255, 255, 0.3);
        position:relative;
        left:-150px;
    }
    @keyframes move{
        from{left:-150px;}
        to{left:350px;}
    }
    @-webkit-keyframes move{
        from{left:-150px;}
        to{left:350px;}
    }
    .div1:hover .div2 {
      animation:move 2s infinite ;
    }
  </style>
</head>
<body>
  <div class="div1">
    <div class="div2"></div>
  </div>
  </div>
  
</body>
</html>
